<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01JS的三种使用方式</title>
</head>
<body>
<!--onclick=""给元素绑定一个点击事件，点击时触发
    alert()显示弹窗-->
<button onclick="alert('请先登录!')">点击即玩</button>
<div id="d1">结婚</div>
<script>
<!--console.log("");在控制台显示    -->
    console.log("玥玥");
    console.log(d1);
</script>
<script src="01.js">
    console.log("你看我执行吗？");
</script>
</body>
</html>